import vue from '@vitejs/plugin-vue';
import { defineConfig } from 'vite';
import styleImport, { VantResolve } from 'vite-plugin-style-import'
const { resolve } = require('path')
export default defineConfig({
    plugins: [vue(),
        /* styleImport({
             resolves: [
                 VantResolve()
             ],
             libs: [{
                 libraryName: 'vant',
                 esModule: true,
                 resolveStyle: (name) => `vant/es/${name}/style/index`,
             }, ],
         }),*/
    ],
    resolve: {
        alias: {
            "@": resolve(__dirname, "src"),
            "components": resolve(__dirname, "src/components"),
            "api": resolve(__dirname, "src/api"),
            "pages": resolve(__dirname, "src/pages"),
            "hooks": resolve(__dirname, "src/hooks"),
        },
    },
    base: "/zhaomu/"


});